/* Ejercicio 4.39
   ejer4_39.c */
#include <stdio.h>

/* function main begins program execution */
int main( void )
{
    float house, food, cloth, transport, education, health, vacations;
    float total, tax;

    printf( "Enter your house expenses: " );
    scanf( "%f", &house );
    printf( "Enter your food expenses: " );
    scanf( "%f", &food );
    printf( "Enter your clothes expenses: " );
    scanf( "%f", &cloth );
    printf( "Enter your transport expenses: " );
    scanf( "%f", &transport );
    printf( "Enter your education expenses: " );
    scanf( "%f", &education );
    printf( "Enter your health expenses: " );
    scanf( "%f", &health );
    printf( "Enter your vacation expenses: " );
    scanf( "%f", &vacations );
    total = house + food + cloth + transport + education + health + vacations;
    tax = 0.23 * total;
    printf( "The tax total is: %.2f\n", tax );
	return 0; /* indicate that program ended successfully */
} /* end function main */
